Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawPolygon Method / DrawPolygon(PointF[],Color,Single,DashStyle) Method
An array of points specifying the polygon.
The line color.
The line width.
The line style (solid by default).

In This Topic
    DrawPolygon(PointF[],Color,Single,DashStyle) Method
    In This Topic
    Draws a polygon specified by an array of points, using a specified line color, width and style.

    If the value of lineStyle parameter is not DashStyle.Solid, the polygon is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

    Syntax
    'Declaration
     
    Public Overloads Sub DrawPolygon( _
       ByVal points() As System.Drawing.PointF, _
       ByVal lineColor As System.Drawing.Color, _
       ByVal lineWidth As System.Single, _
       Optional ByVal lineStyle As DashStyle _
    ) 
    public void DrawPolygon( 
       System.Drawing.PointF[] points,
       System.Drawing.Color lineColor,
       System.float lineWidth,
       DashStyle lineStyle
    )

    Parameters

    points
    An array of points specifying the polygon.
    lineColor
    The line color.
    lineWidth
    The line width.
    lineStyle
    The line style (solid by default).
    See Also